package cn.cai.pethome.dept.mapper;

import cn.cai.pethome.dept.domain.Department;
import cn.cai.pethome.dept.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;


public interface IDepartmentMapper {


        List<Department> findAll(DepartmentQuery query); //查询全部

        Long findCountAll(DepartmentQuery query);//查询总条数

        Department findById(Long id);//根据id查询

        void addDept(Department department);//添加数据

        void updateDept(Department department);//修改数据

        void deleteById(Long id);//根据id删除数据


}
